package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.sys.SysUserSearchDto;
import com.atguigu.spzx.model.entity.sys.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUserMapper {
    SysUser findSysUserByUsername(String userName);

    List<SysUser> selectByCodition(@Param("sysUserSearchDto")SysUserSearchDto sysUserSearchDto);

    void deleteById(Long id);

    void save(@Param("sysUser")SysUser sysUser);

    SysUser selectById(Long id);

    void update(@Param("sysUser")SysUser sysUser);
}
